home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _F032EA8A93534EDC9A94C930C39F1602 < prev    next >
Encoding:
Text File  |  2004-01-06  |  1.9 KB  |  74 lines

  1. ; Shaders Script file
  2. ; Copyright (c) 2001-2003 Crytek Studios. All Rights Reserved.
  3. ; Author: Honich Andrey
  4.  
  5. Version (1.00)
  6.  
  7. //========================================================================
  8. // ATI R3xx / NVidia NV3X (PS.2.0 / PS.2.X only)
  9.  
  10. // Specular & Diffuse bump-mapping with fresnel env. CM reflections masked by gloss-map (alpha channel of diffuse texture)
  11. // At least two passes for multiple light sources
  12. // One pass for single light source
  13.  
  14. // Supports:
  15. // 1. Dot3 light maps
  16. // 2. Simple light maps
  17. // 3. Three types of shadow maps (2D, Depth-maps and mixed Depth/2D)
  18. // 4. Stencil shadows
  19. // 5. Three types of light sources (Directional, Point/Omni, Projected)
  20. // 6. Optimised separate techniques for Single/Multiple light sources
  21.  
  22. /*Shader 'TemplBumpSpec_GlossAlpha_EnvCMSpec_PS20'
  23. (
  24.   Params
  25.   (
  26.     Sort = Opaque
  27.   )
  28.   Public
  29.   (
  30.     float 'EnvMapContrast' (0)
  31.     float 'EnvMapSaturation' (1)
  32.     float 'EnvMapAmount' (1)
  33.     float 'FresnelScale' (1)
  34.     float 'FresnelBias' (0)
  35.     float 'FresnelPow' (5)
  36.     float 'SpecularExp' (32)
  37.   )
  38.  
  39.   #define $ENVCMAP $CubeMap
  40.   #include "BumpSpecular_GlossAlpha_EnvCMSpec_PS20.csi"  
  41.   #undefine $ENVCMAP
  42. )*/
  43.  
  44. Shader 'TemplBumpSpec_GlossAlpha_EnvCMSpec_PS20'
  45. (
  46.   Params
  47.   (
  48.     Sort = Opaque
  49.   )
  50.  
  51.   #define %DIFFUSE 0x1
  52.   #define %DIFFUSE_PERPIXEL 0x8000
  53.   #define %SPECULAR 0x2
  54.   #define %SPECULAR_PERPIXEL 0x400
  55.   #define %BUMP_NORMALIZE 0x200
  56.   #define %ENVCMSPEC 0x80
  57.   #define %GLOSS_DIFFUSEALPHA 0x20
  58.   #define %PROJLIGHT_PERPIXELATTEN 0x100
  59.   #define %BUMP_MAP 0x1000
  60.   
  61.   #include "IllumTemplate.csi"
  62.   
  63.   #undefine %BUMP_MAP
  64.   #undefine %PROJLIGHT_PERPIXELATTEN
  65.   #undefine %GLOSS_DIFFUSEALPHA
  66.   #undefine %ENVCMSPEC
  67.   #undefine %BUMP_NORMALIZE
  68.   #undefine %SPECULAR_PERPIXEL
  69.   #undefine %SPECULAR
  70.   #undefine %DIFFUSE_PERPIXEL
  71.   #undefine %DIFFUSE
  72. )
  73.  
  74.